<?php
class Kc extends  Controller
{
    function Kc()
    {
        parent::Controller();
      
		header("Content-Type: text/html; charset=utf-8");
		
    }
    
    
    function index()
    {
    	
    	//stop("对不起,系统正在维护,暂时不能提供服务,谢谢配合!");
    	$userdata = checksession($this->session);
    	$user = array();
    	if($userdata)
    	{
    		$user = getuserinfo($this->db,$userdata["userid"],array("nickname","lasttime","lastip"));
    		
    	}
    	$this->tp->assign("user",count($user)>0?$user:"no");
    	$_cache_system = array();
    	if(file_exists("./data/system.cache.php"))
    	{
    		require './data/system.cache.php';
    		
    	}
    
    	$this->tp->assign("cache",$_cache_system);
    	
    	$this->tp->show("kc");
    }
    
    
}    
?>